<?php
namespace App\Model;

/**
 * @Author:: HuangYin
 * @DateTime: 2017-01-16 11:37
 *
 * @Description:
 */
class Registration extends BaseModel
{
    protected $table = 'registration';

    protected $visible = ['id', 'type', 'memo', 'uid', 'admin_name', 'created_at'];

    public function admin()
    {
        return $this->hasOne('App\Model\Admin', 'uid', 'uid');
    }
}